﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
using System.ComponentModel;

namespace BDSim
{
    /// <summary>
    /// 天文环境
    /// </summary>
    public class AstronomyEnvModel : EnvBaseModel
    {
        #region 字段和属性
        /// <summary>
        /// 天文环境中的模型列表
        /// </summary>
        private ObservableCollection<AstronomyEnvModel> _AstronomyEnvModelList = new ObservableCollection<AstronomyEnvModel>();
        [XmlAttribute, Browsable(false)]
        public ObservableCollection<AstronomyEnvModel> AstronomyEnvModelList
        {
            get { return _AstronomyEnvModelList; }
            set { _AstronomyEnvModelList = value; NotifyPropertyChanged("AstronomyEnvModelList"); }
        }

        #endregion

        #region 构造函数
        /// <summary>
        /// 构造函数
        /// </summary>
        public AstronomyEnvModel()
        {

        }

        #endregion

        #region 方法
        /// <summary>
        /// 初始化
        /// </summary>
        public override bool Init()
        {
            foreach (var item in AstronomyEnvModelList)
            {
                item.Init();
            }
            return true;
        }

        #endregion
    }
}
